<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*,org.apache.commons.lang.StringUtils,cn.kuaipai.weibo.api.tencent.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>微名片--灵动快拍--用户信息</title>
</head>
<jsp:useBean id="oauth" class="cn.kuaipai.weibo.model.OAuth" scope="session"/>
<body>
<%
	String openid = "FB735A47F5C7C0E03327DE239CF4B942" ; 
	String openkey = "C0C89BAD4E2E7E07BD124FA83FCECE57" ;
	
	
	TencentUserAPI userAPI = new TencentUserAPI();
	out.print(userAPI.getUserInfo("json",openid,openkey));
	
	out.print("<br/><br/><br/>");
	
	TencentFriendsAPI friendsAPI = new TencentFriendsAPI();
	out.print(friendsAPI.getFriendsFansList(openid,openkey,"json","30", "0", "0"));
	
	out.print("<br/><br/><br/>");

	TencentTAPI  tAPI = new TencentTAPI();
	out.print(tAPI.add(openid,openkey,"json","测试发布一条微博","165.23.12.24"));
%>
</body>
<html>
